Rails.application.routes.draw do



  root 'static_pages#home'
  get '/static_pages/data', to: 'static_pages#data'

  get 'login', to: 'sessions#new'
  post 'login', to: 'sessions#create'
  delete 'logout', to: 'sessions#destroy'

  get '/signup', to: 'users#new'
  get '/users/edit', to: 'users#edit', as: 'edit_user'
  resources :users ,only: [:new, :create, :update]
  post '/common/upload', to: 'uploader#upload'
  resources :ad_groups
  resources :campaigns
  resources :landing_pages
  get '/ad_group_creatives.json', to: 'ad_group_creatives#creatives'
  get '/ad_group_creative/:siteset_type' , to: 'ad_group_creatives#list'
  resources :ad_group_creatives
  resources :account_flows, only: [:index,:show ,:destroy]


  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  #resources :user
end
